-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filesystem.py: add boot order attribute for filesystem device #3778
Conversation
Signed-off-by: Meina Li <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -29,6 +29,8 @@ def __init__(self, type_name='mount', virsh_instance=base.base.virsh): | |||
accessors.XMLElementDict('alias', self, | |||
parent_xpath='/', | |||
tag_name='alias') | |||
accessors.XMLAttribute('boot', self, parent_xpath='/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could consider XMLElementDict if there are new attributes to 'boot' element in the future.
And we could keep the current implement if the chance of adding new attribute is really small.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can keep it in current status because it is unlikely that there will be a new attribute to 'boot' element. If there are indeed changes later, we can update them together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course.
@@ -29,6 +29,8 @@ def __init__(self, type_name='mount', virsh_instance=base.base.virsh): | |||
accessors.XMLElementDict('alias', self, | |||
parent_xpath='/', | |||
tag_name='alias') | |||
accessors.XMLAttribute('boot', self, parent_xpath='/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course.
filesystem.py: add boot order attribute for filesystem device
Add boot order attribute for filesystem device.